import request from '@/utils/request'
/**
 * 订单列表
 */
export function getOrderList (data) {
  return request({
    url: '/manage/orders_manage/orderList',
    method: 'post',
    params: data
  })
}

export function getOrderDetail (data) {
  return request({
    url: '/manage/orders_manage/orderView',
    method: 'post',
    params: data
  })
}

export function getSaleOrderList (data) {
  return request({
    url: '/manage/orders_manage/selledList',
    method: 'post',
    params: data
  })
}
export function getSaleOrderDetail (data) {
  return request({
    url: '/manage/orders_manage/orderDetail',
    method: 'post',
    params: data
  })
}

/**
 * 完成退款
 */
export function finishRefund (data) {
  return request({
    url: '/manage/orders_manage/finishRefund',
    method: 'post',
    params: data
  })
}

export function failureRefund (data) {
  return request({
    url: '/manage/orders_manage/refundFailure',
    method: 'post',
    params: data
  })
}
export function deliverLogistic (data) {
  return request({
    url: '/manage/orders_manage/sendGoods',
    method: 'post',
    params: data
  })
}

export function getLogistic (data) {
  return request({
    url: '/manage/orders_manage/viewExpress',
    method: 'post',
    params: data
  })
}
